/**
 * @Description 邮件发送
 */

const nodemailer = require('nodemailer');
const smtpTransport = require('nodemailer-smtp-transport');

const transport = nodemailer.createTransport(smtpTransport({
  // service: config.email.service,
  host: "smtp.qq.com", // qq邮箱主机
  secure: true, // 使用 SSL
  secureConnection: true, // 使用 SSL
  port: 465, // SMTP 端口
  auth: {
    user: '291652928@qq.com',
    pass: 'pfsrhxhzwbwbcage'
  }
}));

module.exports = transport;
